﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Frontdatabase.Migrations
{
    /// <inheritdoc />
    public partial class 添加修改表注释 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "ZanSize",
                table: "VideoList",
                type: "int",
                nullable: false,
                comment: "点赞数",
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<int>(
                name: "WacthCount",
                table: "VideoList",
                type: "int",
                nullable: false,
                comment: "播放量",
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<int>(
                name: "Size",
                table: "VideoList",
                type: "int",
                nullable: false,
                comment: "视频总大小 最大200gb ",
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<string>(
                name: "Synopsis",
                table: "VideoCompilations",
                type: "nvarchar(max)",
                nullable: true,
                comment: "视频合集简介",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "合集简介");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "ZanSize",
                table: "VideoList",
                type: "int",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "点赞数");

            migrationBuilder.AlterColumn<int>(
                name: "WacthCount",
                table: "VideoList",
                type: "int",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "播放量");

            migrationBuilder.AlterColumn<int>(
                name: "Size",
                table: "VideoList",
                type: "int",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "视频总大小 最大200gb ");

            migrationBuilder.AlterColumn<string>(
                name: "Synopsis",
                table: "VideoCompilations",
                type: "nvarchar(max)",
                nullable: true,
                comment: "合集简介",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "视频合集简介");
        }
    }
}
